﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucExpertList.ascx.cs"
    Inherits="ExpertMIS.UserControl.ucExpertList" %>
<style type="text/css">
    .expert-info-tb
    {
        border: 0px;
        margin: 8px 0px 0px 4px;
    }
    .expert-info-tb-col1
    {
        width: 120px;
        font-size: 12px;
    }
</style>
<asp:DataList ID="dlColumns" runat="server" CssClass="column-container" OnItemDataBound="dlColumns_ItemDataBound">
    <ItemTemplate>
        <div class="expert-list">
            <div style="width: 160px; height: 190px; line-height: 190px; float: left; text-align: center;   vertical-align : middle;">
                <%--<asp:Image runat="server" ID="imgPhoto" ImageAlign="AbsMiddle" ImageUrl='<%# "~/Service/GetPhoto.aspx?w=128&h=128&filename=" + Eval("Graphic") %>'
                    Width="128px" Height="181px" />--%>     
                <asp:HyperLink runat="server" ID="hlExpertView" NavigateUrl='<%# "~/Forums/ExpertView.aspx?oid=" + Eval("OID")%>'>
                    <asp:Image runat="server" ID="imgPhoto" ImageAlign="AbsMiddle" ImageUrl='<%# "~/service/GetPhoto.aspx?w=128&h=128&filename=" + Eval("Graphic") %>'
                        Width="128px" Height="181px" BorderStyle="None" /></asp:HyperLink>                               
            </div>
            <div style="width: 550px; height: 190px; float: left;">
                <asp:Panel runat="server" ID="pnExpertIntroduce" Height="153px" Style="text-align: left">
                    <table cellpadding="0" cellspacing="0" class="expert-info-tb" style="height: 156px">
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                姓名：
                            </td>
                            <td>
                                <%--<asp:Label ID="lblName" runat="server" Text="Label"></asp:Label>--%>
                                <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# "~/Forums/ExpertView.aspx?oid=" + Eval("OID")%>'>
                                <asp:Label ID="lblName" runat="server" Text="Label"></asp:Label></asp:HyperLink>
 

                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                专业特长：
                            </td>
                            <td>
                                <asp:Label ID="lblExpertise" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                职务职称：
                            </td>
                            <td>
                                <asp:Label ID="lblPosition" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                联系方式：
                            </td>
                            <td>
                                <asp:Label ID="lblPhone" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                回答次数：
                            </td>
                            <td>
                                <asp:Label ID="lblReplyCount" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px">
                                被采纳数：
                            </td>
                            <td>
                                <asp:Label ID="lblAcceptCount" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="expert-info-tb-col1" style="width: 64px; height: 19px">
                                采纳率：
                            </td>
                            <td style="height: 19px">
                                <asp:Label ID="lblAcceptRate" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <div style="height: 33px;">
                    <div style="height: 33px; width: 347px; float: left">
                    </div>
                    <div style="height: 33px; line-height: 33px; vertical-align: middle; text-align: left;
                        float: left">
                        <asp:HyperLink runat="server" NavigateUrl="~/Forums/PostQuestion.aspx" Style="text-decoration: none;
                            color: Black; font-size: 9pt;">
                        <asp:Image runat="server" ImageUrl="~/imgs/AskExpert.png" Style="border: 0" /><span>向专家提问</span></asp:HyperLink>
                    </div>
                </div>
            </div>
        </div>
    </ItemTemplate>
    <ItemStyle BorderColor="#595959" BorderStyle="Solid" BorderWidth="1px" Width="710px" />
    <SeparatorTemplate>
        <div style="height: 5px;">
        </div>
    </SeparatorTemplate>
</asp:DataList>
